package _9练习;

public class Computer implements IPlayGameAble{
	int price;
	String brand;
	public String getBrand() {
		return brand;
	}

	public void setBrand(String brand) {
		this.brand = brand;
	}

	public int getPrice() {
		return price;
	}

	public void setPrice(int price) {
		this.price = price;
	}
	
	
		
	public Computer(String brand, int price) {
		super();
		this.brand = brand;
		this.price = price;
	}
	@Override
	public void playGame() {
		System.out.println("在使用"+price+"元"+brand+"电脑玩游戏");
	}
	public void coding() {
		System.out.println("在使用"+price+"元"+brand+"电脑开发JavaEE应用");

	}
	
	@Override
	public String toString() {
		return "Computer [brand=" + brand + ", price=" + price + "]";

	}
}
